package base64

import (
	"encoding/base64"
)

func Encode(src string) string {
	return base64.StdEncoding.EncodeToString([]byte(src))
}

func Decode(target string) string {
	decodeBytes, err := base64.StdEncoding.DecodeString(target)
	if err != nil {
		return ""
	}
	return string(decodeBytes)
}
